<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023-12-05
  Time: 17:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户登录</title>
</head>
<body>
<form action="validate.jsp" method="post">
    <%
        String userName = request.getParameter("userName");
        if (userName == null){
            userName = "";
        }else {
            System.out.println("<span style='color:#f00;'>*用户名或密码错误！</span>");
        }
    %>
    <p>
        用户名：<input type="text" name="userName" value="<%=userName%>"/>
        密码：<input type="password" name="userPass"/>
        <input type="submit" value="登录"/>
    </p>
</form>
</body>
</html>